﻿using System;

namespace Test.Site.Data
{
    public class PermissionInfoAttribute : Attribute
    {
        /// <summary>
        /// 自动生成权限表时候需要的
        /// </summary>
        /// <param name="name">菜单的名称</param>
        /// <param name="groupName">菜单的分组</param>
        /// <param name="isMenu">是否是菜单</param>
        /// <param name="order">顺序</param>
        public PermissionInfoAttribute(string name, string groupName = "系统功能", string cssClass = "", int order = 0, bool isMenu = true)
        {
            Name = name;
            GroupName = groupName;
            Order = order;
            IsMenu = isMenu;
            CssClass = cssClass;
        }

        public string Name { get; set; }

        public string GroupName { get; set; }

        public int Order { get; set; }

        public bool IsMenu { get; set; }

        public string CssClass { get; set; }

    }
}
